package com.canyou.activiti.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 流程表单项模型
 *
 * @author fy
 * @date 2021/3/10 16:03
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "FormDataItemDTO", description = "流程表单项模型")
public class FormDataItemDTO {

    @ApiModelProperty(value = "控件id(控件编号)")
    private String controlId;

    @ApiModelProperty(value = "控件名称")
    private String controlName;

    @ApiModelProperty(value = "控件类型(input, radio, checkbox, switch, select, city-select)")
    private String controlType;

    @ApiModelProperty(value = "控件类型(string, number, date, array)")
    private String dataType;

    @ApiModelProperty(value = "可选值[{label: value},{label1: value1}]")
    private String optionalVal;

    @ApiModelProperty(value = "是否必填(0: 否, 1: 是)")
    private Boolean isRequired;

    @ApiModelProperty(value = "输入提示语")
    private String placeHolder;

    @ApiModelProperty(value = "默认值")
    private String defaultVal;

    @ApiModelProperty(value = "校验约束")
    private String validateConstraint;

    @ApiModelProperty(value = "是否作为下一流程参数(0: 否, 1: 是)")
    private Boolean isParam;
}
